package com.hunt.model.entity;


import java.util.Objects;

/**
 * @Author: sjs
 * @Date: 2020-9-16 16:21
 * @Description:
 */
public class StockBase {

    private String f1;

    private String tsCode;

    private String stockCode;

    private String name;

    private String area;

    private String industry;

    private String listDate;

    public String getF1() {
        return f1;
    }

    public void setF1(String f1) {
        this.f1 = f1;
    }

    public String getTsCode() {
        return tsCode;
    }

    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getListDate() {
        return listDate;
    }

    public void setListDate(String listDate) {
        this.listDate = listDate;
    }

    @Override
    public String toString() {
        return "StockBase{" +
                "f1='" + f1 + '\'' +
                ", tsCode='" + tsCode + '\'' +
                ", stockCode='" + stockCode + '\'' +
                ", name='" + name + '\'' +
                ", area='" + area + '\'' +
                ", industry='" + industry + '\'' +
                ", listDate='" + listDate + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StockBase stockBase = (StockBase) o;
        return Objects.equals(f1, stockBase.f1) &&
                Objects.equals(tsCode, stockBase.tsCode) &&
                Objects.equals(stockCode, stockBase.stockCode) &&
                Objects.equals(name, stockBase.name) &&
                Objects.equals(area, stockBase.area) &&
                Objects.equals(industry, stockBase.industry) &&
                Objects.equals(listDate, stockBase.listDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(f1, tsCode, stockCode, name, area, industry, listDate);
    }
}
